package com.zxjbyte.yiyi.module.system.domain.response.log;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * @Author zhangxingjia
 * @Date 2023/3/18 10:35
 * @Version: 1.0
 */
@Data
@Schema(description = "操作日志分页响应结构体")
public class OperateLogPageResponse {

    @Schema(description = "id")
    private Long id;

    @Schema(description = "用户编号")
    private Long userId;

    @Schema(description = "租户编号")
    private String tenantId;

    @Schema(description = "应用名")
    private String applicationName;

    @Schema(description = "模块")
    private String module;

    @Schema(description = "操作名")
    private String name;

    @Schema(description = "操作分类")
    private Integer type;

    @Schema(description = "用户ip")
    private String userIp;

    @Schema(description = "浏览器UA")
    private String userAgent;

    @Schema(description = "请求方式")
    private String requestMethod;

    @Schema(description = "请求地址")
    private String requestUri;

    @Schema(description = "开始时间")
    private Date startTime;

    @Schema(description = "执行时长")
    private Integer duration;

    @Schema(description = "方法名")
    private String methodName;

    @Schema(description = "类名")
    private String className;

    @Schema(description = "参数")
    private String params;

    @Schema(description = "结果数据")
    private String resultData;

    @Schema(description = "创建用户")
    private String createUser;

    @Schema(description = "创建时间")
    private Date createTime;
}
